/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package register.ucm;
import register.model.InputValueModel;
/**
 *
 * @author Donghui
 */
public class GenerateDept {

    private InputValueModel value;
    private String tp;

    public GenerateDept(InputValueModel temp)
    {
        value=temp;
    }

    public String generateDept()
    {
        if(value.getGroup().equals("Staff"))
        {
        if(value.getDepartment().equals("Department of Finanical Affairs"))
        {
            tp="01";
        }
        else if(value.getDepartment().equals("Educational Administration Center"))
        {
            tp="02";
        }
        else if(value.getDepartment().equals("Library"))
        {
            tp="03";
        }
        }
        return tp;
    }

}
